package com.new_wear.project.system.rules.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.new_wear.framework.aspectj.lang.annotation.Excel;
import com.new_wear.framework.web.domain.BaseEntity;
import java.util.Date;

/**
 * 用户 - 等级积分规则对象 cst_user_integral_rules
 * 
 * @author new_wear
 * @date 2020-01-07
 */
public class CstUserIntegralRules extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** null */
    private Long id;

    /** 应用ID */
    @Excel(name = "应用ID")
    private Long areaId;

    /** 行为编号 */
    @Excel(name = "行为编号")
    private String eventCode;

    /** 行为描述 */
    @Excel(name = "行为描述")
    private String eventNote;

    /** 每用户计分次数 0为不限 */
    @Excel(name = "每用户计分次数 0为不限")
    private Integer openidLimit;

    /** 是否按天计数 */
    @Excel(name = "是否按天计数")
    private Integer dayLimit;

    /** 积分累计类型（0 行为积分 1 自定义积分） */
    @Excel(name = "积分累计类型", readConverterExp = "0=,行=为积分,1=,自=定义积分")
    private Integer grandType;

    /** 产生计分值 */
    @Excel(name = "产生计分值")
    private Integer creditAmount;

    /** 是否发布 */
    @Excel(name = "是否发布")
    private Integer isPublish;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isDelete;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createUser;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;

    /** 最后修改人 */
    @Excel(name = "最后修改人")
    private String modifyUser;

    /** 最后修改时间 */
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setEventCode(String eventCode) 
    {
        this.eventCode = eventCode;
    }

    public String getEventCode() 
    {
        return eventCode;
    }
    public void setEventNote(String eventNote) 
    {
        this.eventNote = eventNote;
    }

    public String getEventNote() 
    {
        return eventNote;
    }
    public void setOpenidLimit(Integer openidLimit) 
    {
        this.openidLimit = openidLimit;
    }

    public Integer getOpenidLimit() 
    {
        return openidLimit;
    }
    public void setDayLimit(Integer dayLimit) 
    {
        this.dayLimit = dayLimit;
    }

    public Integer getDayLimit() 
    {
        return dayLimit;
    }
    public void setGrandType(Integer grandType) 
    {
        this.grandType = grandType;
    }

    public Integer getGrandType() 
    {
        return grandType;
    }
    public void setCreditAmount(Integer creditAmount) 
    {
        this.creditAmount = creditAmount;
    }

    public Integer getCreditAmount() 
    {
        return creditAmount;
    }
    public void setIsPublish(Integer isPublish) 
    {
        this.isPublish = isPublish;
    }

    public Integer getIsPublish() 
    {
        return isPublish;
    }
    public void setIsDelete(Integer isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() 
    {
        return isDelete;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setCreateAt(Date createAt) 
    {
        this.createAt = createAt;
    }

    public Date getCreateAt() 
    {
        return createAt;
    }
    public void setModifyUser(String modifyUser) 
    {
        this.modifyUser = modifyUser;
    }

    public String getModifyUser() 
    {
        return modifyUser;
    }
    public void setModifyAt(Date modifyAt) 
    {
        this.modifyAt = modifyAt;
    }

    public Date getModifyAt() 
    {
        return modifyAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("areaId", getAreaId())
            .append("eventCode", getEventCode())
            .append("eventNote", getEventNote())
            .append("openidLimit", getOpenidLimit())
            .append("dayLimit", getDayLimit())
            .append("grandType", getGrandType())
            .append("creditAmount", getCreditAmount())
            .append("isPublish", getIsPublish())
            .append("isDelete", getIsDelete())
            .append("createUser", getCreateUser())
            .append("createAt", getCreateAt())
            .append("modifyUser", getModifyUser())
            .append("modifyAt", getModifyAt())
            .toString();
    }
}
